<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>

	<link rel="stylesheet" href="./public/css/bootstrap.min.css">
    <link rel="stylesheet" href="./public/my.css">

</head>
<body>
   <h1>用户列表</h1>
    <div class="container">
    <div class="center-block mt20">
            <a href="./index.php?c=User&a=index" class="btn btn-info">首页</a>
            <a href="./index.php?c=User&a=add" class="btn btn-success">添加</a>
     </div>
 <{block name="main"}>
	<table class="table table-hover mt20">
		<tr>
			<td>ID</td>
			<td>tel</td>
			<td>nickname</td>
			<td>pwd</td>
			<td>sex</td>
		</tr>
		<{foreach $list as $v}>
			<tr>
				<td><{$v['id']}></td>
				<td><{$v['tel']}></td>
				<td><{$v['nickname']}></td>
				<td><{$v['pwd']}></td>
				<td>
				<{if $v['sex']==0}>女
				<{elseif $v['sex']==1}>男
				<{else}>保密
				<{/if}>
				</td>
				<td class="col-md-2">
					<a href="./index.php?c=user&a=edit&id=<{$v.id}>" class="btn btn-sm btn-primary">编辑</a>
					<a href="./index.php?c=user&a=del&id=<{$v.id}>" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
		<{/foreach}>
	</table>
        <{/block}>

</div><!--END container-->

	<script src="./public/js/jquery.min.js"></script>
	<script src="./public/js/bootstrap.min.js"></script>
</body>
</html>